Solution of linear Equations using Matrix Method